package com.adeoservices.gwt.dispatch.spring.server.security;

import net.customware.gwt.dispatch.server.ExecutionContext;
import net.customware.gwt.dispatch.shared.ActionException;

import org.springframework.stereotype.Component;

import com.adeoservices.gwt.dispatch.spring.server.handler.SpringActionHandler;

@Component
public class ActionHandlerWithoutPermission extends
		SpringActionHandler<ActionWithoutPermission, ResultWithoutPermission> {

	@Override
	public ResultWithoutPermission execute(ActionWithoutPermission action, ExecutionContext context)
			throws ActionException {

		System.out.println("dans test machin");
		return new ResultWithoutPermission();
	}

	@Override
	public Class<ActionWithoutPermission> getActionType() {
		return ActionWithoutPermission.class;
	}

	@Override
	public void rollback(ActionWithoutPermission action, ResultWithoutPermission result,
			ExecutionContext context) throws ActionException {
	}
}
